package org.bugeden.netdisk.json

import java.util.Date

/**
 * Created by IntelliJ IDEA.
 * User: inotseeyou
 * Date: 2010-11-13
 * Time: 2:05:54
 * To change this template use File | Settings | File Templates.
 */

class BlockDescriptor extends AnyRef with Json{
  var parentId: String = ""
  var id: String = ""
  var secId: String = ""
  var order: Int = 0
  var size: Int = 0
  // -- option --
  var summary: String = ""
  var createDate: Date = new Date
}

object BlockDescriptor{
  def apply(order: Int): BlockDescriptor = {
    val res = new BlockDescriptor
    res.order = order
    res
  }
}